Namespace - LJCDBClientLib
Parameters
dataObject - The record object.
propertyNames - The included column property names.
Returns
The object with the DB assigned key values.
Syntax
C# |
public TData Add(TData dataObject, List<String> propertyNames = null)
|
Adds a record to the database.
(E)
Example
C# |
private static void Add(ObjectManager<Person, Persons> personManager)
{
Person dataObject = new Person()
{
Name = "TestName",
PrincipleFlag = false
};
Person resultPerson = personManager.Add(dataObject);
if (resultPerson != null)
{
dataObject.ID = resultPerson.ID;
}
}
|
Copyright © Lester J. Clark and Contributors.
Licensed under the MIT License.